home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
CMPLTPAS
/
POWER.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1988-09-29
|
901b
|
19 lines
{->>>>Power<<<<------------------------------------------------}
{ }
{ Filename : POWER.SRC -- Last Modified 9/29/88 }
{ }
{ This routine performs the general function of raising }
{ Mantissa to the power Exponent. This is slow as such things }
{ go; if you need to do this within a tight loop, be tricky }
{ and do it some other way. }
{ }
{ From: COMPLETE TURBO PASCAL 5.0 by Jeff Duntemann }
{ Scott, Foresman & Co., Inc. 1988 ISBN 0-673-38355-5 }
{--------------------------------------------------------------}
FUNCTION Power(Mantissa,Exponent : Real) : Real;
BEGIN
Power := Exp(Ln(Mantissa) * Exponent)
END;